# -*- coding: utf-8 -*-
# @Time    : 2023/6/3 17:25
# @Author  : 刘张宇
# @Email   : 2285524065@qq.com
# @File    : .py
# @Software: PyCharm

from appium.webdriver.common.mobileby import MobileBy as By
from pages.base_page import BasePage

class SubmissionBox(BasePage):
    submission_box_locator = (By.XPATH, '//*[@text="草稿箱"]')#草稿箱定位器
    title_locator = (By.XPATH, '//*[@resource-id="com.xiachufang:id/navigation_bar_title_layout"]')


    def menu_submission_box(self):
        self.find_element(self.submission_box_locator).click()#草稿箱

    def task_first(self):
        current_task = self.find_element(self.title_locator).text
        return current_task








